﻿@model DomenModel.Item

@{
    ViewBag.Title = "Edit Item";
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <div class="panel-text">
        <h2>Edit Item</h2>

        <table class="create-user-table">
            <tr>
                <td>@Html.LabelFor(model => model.Name)</td>
                <td>@Html.TextBoxFor(model => model.Name, new { @class = "border" })</td>
                <td>@Html.ValidationMessageFor(model => model.Name)</td>
            </tr>

            <tr>
                <td>@Html.LabelFor(model => model.Description)</td>
                <td>@Html.TextBoxFor(model => model.Description, new { @class = "border" })</td>
                <td>@Html.ValidationMessageFor(model => model.Description)</td>
            </tr>

            <tr>
                <td>@Html.LabelFor(model => model.ItemPrice)</td>
                <td>@Html.TextBoxFor(model => model.ItemPrice, new { @class = "border" })</td>
                <td>@Html.ValidationMessageFor(model => model.ItemPrice)</td>
            </tr>
             @Html.TextBoxFor(m => m.IsActive, new { @Value = true, @type="hidden" })
            @Html.TextBoxFor(m => m.ItemId, new { @Value = ViewBag.Id, @type="hidden" })
        </table>
        <div style="margin-left: 80px;">
            <button type="submit" name="action" value="Create" class="buttons-blue">Create</button>
            <button type="reset" name="action" value="Refresh" class="buttons-yellow">Edit</button>
            @Html.ActionLink("Cancel", "Index", null, new { @class = "buttons-red" })
        </div>

    </div>
}


<br />
<br />
@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
